package smb.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.List;

@Entity
@Data
public class Student {
    @Id
    private String id;
    private String name;
    private String sex;
    @OneToMany(mappedBy = "student")
    private List<Score> scores;
}
